package process_demo.review.other_locks.fair_nuFair_lock;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author haomin
 * @date 2022/09/20 17:48
 **/
public class Main {
    public static void main(String[] args) {
        Lock lock = new ReentrantLock(true);   // 公平锁
        Lock lock2 = new ReentrantLock(false); // 不公平锁
        Lock lock3 = new ReentrantLock();          // 默认不公平锁
    }
}